package com.example.child_protection.dto.request.update;

import com.example.child_protection.dto.base.BaseRequestDTO;
import com.example.child_protection.dto.base.BaseUpdateRequestDTO;
import com.example.child_protection.enums.SexEnums;
import io.swagger.annotations.ApiParam;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 用户信息修改请求DTO
 * @date 2018-11-1
 * @author Biz
 */
@Getter
@Setter
public class UserUpdateRequestDTO extends BaseUpdateRequestDTO {


    /**
     * 地区ID
     *
     * @mbggenerated
     */
    @ApiParam(value = "地区ID",required = true)
    @NotNull
    private Long districtId;

    /**
     * 医院ID
     *
     * @mbggenerated
     */
    @ApiParam(value = "医院ID",required = true)
    @NotNull
    private Long hispitalId;

    /**
     * 科室ID
     *
     * @mbggenerated
     */
    @ApiParam(value = "科室ID",required = true)
    @NotNull
    private Long departmentId;

    /**
     * 地区
     *
     * @mbggenerated
     */
    @ApiParam(value = "地区",required = true)
    @NotNull
    private String district;

    /**
     * 医院
     *
     * @mbggenerated
     */
    @ApiParam(value = "医院",required = true)
    @NotNull
    private String hispital;

    /**
     * 科室
     *
     * @mbggenerated
     */
    @ApiParam(value = "科室",required = true)
    @NotNull
    private String department;

    /**
     * 用户名/账号
     *
     * @mbggenerated
     */
    //private String userName;

    /**
     * 真实名字
     *
     * @mbggenerated
     */
    @ApiParam(value = "名字",required = true)
    @NotNull
    private String realName;

    /**
     * 所属角色
     *
     * @mbggenerated
     */
    @ApiParam(value = "角色id",required = true)
    @NotNull
    private Long roleId;

    /**
     * 性别
     *
     * @mbggenerated
     */
    @ApiParam(value = "性别",hidden = true)
    private SexEnums sex;

    /**
     * 年龄
     *
     * @mbggenerated
     */
    @ApiParam(value = "年龄",hidden = true)
    private Long age;


    public void valid(){
        super.validate( this, new Class[0] );
    }
    public boolean isValidGid() {

        return false;
    }

}
